package com.yima.baseproj.module.app.equipmentUser;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yima.baseproj.module.config.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import com.yima.baseproj.module.app.equipmentUser.model.*;

@Data
@TableName("equipment_user")
public class EquipmentUserEntity extends BaseEntity {


    @ApiModelProperty(value = "微信用户openid")
    @TableField(value = "openid")
    private String openid;


    @ApiModelProperty(value = "用户姓名")
    @TableField(value = "name")
    private String name;


    @ApiModelProperty(value = "性别")
    @TableField(value = "sex")
    private String sex;


    @ApiModelProperty(value = "手机号")
    @TableField(value = "phone")
    private String phone;


    @ApiModelProperty(value = "用户头像")
    @TableField(value = "head_img")
    private String headImg;

    @ApiModelProperty(value = "md5加密数据")
    @TableField(value = "md_five")
    private String mdFive;
    public void setData(EquipmentUserAddParamModel paramModel) {
        this.openid = paramModel.getOpenid();
        this.name = paramModel.getName();
        this.sex = paramModel.getSex();
        this.phone = paramModel.getPhone();
        this.headImg = paramModel.getHeadImg();
        this.mdFive = paramModel.getMdFive();
    }
}